<%-- 
    Document   : cliente
    Created on : 26/04/2012, 11:01:25
    Author     : guardezi
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title>Cadastrar Usuario</title>
        <style type='text/css'>
            body { 
                background-image: url('img1.jpg');
                /*background-repeat: no-repeat;
                backgroubd-position: center;*/
            }
            h1{
                color: #FFCC33;
            }
        </style>

    </head>
    <body align="center">
        <h1 align="center">${cadastrausuario}</h1><hr/><hr/><hr/>

        <form action="<c:url value="/gravarUsuario" />" method="post">
            <table border=1 bgcolor="#FFCC33" align="center">
               
                <tr>
                    <td>Username</td>
                    <td><input name="u.username" /></td>
                </tr>
                <tr>
                    <td>Password</td>
                    <td><input name="u.password" /> </td>
                </tr>
                <tr>
                    <td>Autorizacao</td>
                    <td><input name="u.autorizacao" /> </td>
                </tr>
                <tr>
                    <td colspan=2 align="right"> <input type="submit" value="Cadastrar" /></td>
                </tr>
            </table>
        </form><hr/><hr/><hr/>


        <c:forEach items="${usuarioList}" var="u">
            Id ${u.idUsuario }  <br/>
            Username: ${u.username } <br/>
            Password: ${u.password } <br/>
            Autorização: ${u.autorizacao }<br/>
            <a href="<c:url value="/excluirUsr/${u.idUsuario }"/>">excluir</a>
            -------------------------------------</br>
        </c:forEach> 
        <hr/>
        <a  href="<c:url value="/"/>">Pagina Inicial</a><br/>  

    </body>
</html>